home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
spoc88
/
cengn
/
modif-c.c
< prev
Wrap
Text File
|
1988-05-10
|
1KB
|
53 lines
/************************************************************
MODIF-C.C - by Jake Richter
Displays all C source files in the current directory
that have their archive bits set.
************************************************************/
#include <stdio.h>
#include <dos.h>
#include <dir.h>
/************************************************************
Program Definitions
************************************************************/
#define FALSE 0
#define TRUE !FALSE
typedef struct ffblk FFBLK;
/************************************************************
Externals
************************************************************/
extern void SearchEngine();
/************************************************************
void DisplayModC()
This routine is called once for every C source file
in the current directory. It displays only those C files that
have their Archive attribute bit set.
************************************************************/
void DisplayModC(searchRec)
FFBLK *searchRec;
{
if (searchRec->ff_attrib & FA_ARCH)
printf("%s\n", searchRec->ff_name);
return;
}
/************************************************************
main()
Here we make the call to SearchEngine.
************************************************************/
main()
{
SearchEngine("*.C", 0, DisplayModC);
exit(0);
}